<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('sign_configs', function (Blueprint $table) {
            $table->id();
            $table->string('sign_cycle')->comment('签到周期');
            $table->dateTime('start_time')->comment('开始时间');
            $table->dateTime('end_time')->comment('结束时间');
            $table->string('monday')->comment('周一');
            $table->string('tuesday')->comment('周二');
            $table->string('wednesday')->comment('周三');
            $table->string('thursday')->comment('周四');
            $table->string('friday')->comment('周五');
            $table->string('saturday')->comment('周六');
            $table->string('sunday')->comment('周日');
            $table->string('description', 500)->nullable()->comment('描述');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('sign_configs');
    }
};
